  <%@ page language="java" import="com.qipay.admin.tags.PageModel" contentType="text/html;charset=utf-8"%>
<%@ page import="com.qipay.baas.model.User" %>
<%@ page import="com.qipay.admin.utils.SiteHelper" %>
<!doctype html>
<html>
<head>
    <jsp:include page="head.jsp"></jsp:include>
    <link rel="stylesheet" href="${StaticHost}/css/dataTables.bootstrap.min.css">
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
    <jsp:include page="nav.jsp"></jsp:include>
    <jsp:include page="left.jsp"></jsp:include>
    <!-- Content Wrapper. Contains page content -->
    <%
        User user = (User) session.getAttribute("user");
        int level = 0;
        String userName="游客";
        if (null != user) {
            userName = user.getName();
            level = user.getLevel();
        }
    %>

    <div class="content-wrapper">
        <!-- Main content -->
        <section class="content">
            <div class="row">
                <div class="col-xs-12">
                    <div class="box">
                        <div class="box-header">
                            <h3 class="box-title"><%= SiteHelper.getUserLevelStrByLevel(level)%><%= userName%>，祝您工作愉快！</h3>
                        </div>
                        <!-- /.box-header -->
                        <div class="box-body">
                            Welcome
                        </div>
                        <!-- /.box-body -->
                    </div>
                    <!-- /.box -->
                </div>
                <!-- /.col -->
            </div>
            <!-- /.row -->
        </section>
        <!-- /.content -->
    </div>
    <!-- /.content-wrapper -->
    <jsp:include page="foot.jsp"></jsp:include>
</div>
<script src="${StaticHost}/js/fastclick.js"></script>
<script src="${StaticHost}/js/adminlte.min.js"></script>
<script language="JavaScript">
    var isLogin = <%= user==null?"0":"1"%>
    if(isLogin=="0"){
        window.location.href = contextPath+"/login";
    }
</script>
</body>
</html>

